<template>
	<view class="passenger-flow">
		<view class=""
			style="width: 100%;height: 180rpx;background-color: #fff;position: relative;top: 0;z-index: 999;">
			<view class="con-1">
				<view class="bg">
					<view class="address">
						<view class="flex-space-between">
							<view class="flex-align">
								<van-image v-if="itemChooselist.venue_thumb != ''" width="74rpx" height="74rpx"
									radius="2" style="margin-right: 10rpx;" :src="itemChooselist.venue_thumb" />
								<van-image v-else width="74rpx" height="74rpx" radius="10rpx" fit="cover" style="margin-right: 10rpx;" src="https://img.yzcdn.cn/vant/cat.jpeg" />
								<view>
									<view class="address-name">{{itemChooselist.venue_name}}</view>
									<view class="address-desc">地址:{{itemChooselist.address}}</view>
								</view>
							</view>
							<view class="exchange flex-center flex-column " @click="show_no">
								<van-icon name="exchange" size="16" />
								切换
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="box_9">
			<view class="box_11">
				<view class="image-wrapper_7">
					<u-search @search="search" @custom="search" placeholder="搜索" :showAction="false"
						v-model="searchKey">
					</u-search>
				</view>
				<view class="label_list" @click="tianjiaclick">
					<image
						src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/0555f554c12d0d628b0e4e3e90147966755aa715.png"
						class="label_7"></image>
					<view class="label_77">
						添加
					</view>
				</view>
				<view class="label8_list" @click="dropdownclick">
					<image
						src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/a0caafa1d0f5c11490a41f203aab143debf439d6.png"
						class="label_8"></image>
					<view class="label_88">
						<!-- 筛选 -->
						<HM-filterDropdown :menuTop="88" :filterData="filterData" :defaultSelected="defaultSelected"
							:updateMenuName="true" @confirm="confirm" dataFormat="Object"></HM-filterDropdown>
					</view>
				</view>
			</view>

			<view class="" style="margin-top: 100rpx;" v-if="type == ''">
				<u-sticky>
					<u-tabs :list="tabsList" lineColor="#FF4040" :activeStyle="{
									color: '#000000'
								}" :inactiveStyle="{
									color: '#353535'
								}" :lineWidth="30" :current="currentTab" @click="onClickTab" />
				</u-sticky>
			</view>

			<view class="" style="margin-top: 100rpx;" v-if="type == 1">
				<u-sticky>
					<u-tabs :list="tabsList_s" lineColor="#FF4040" :activeStyle="{
									color: '#000000'
								}" :inactiveStyle="{
									color: '#353535'
								}" :lineWidth="30" :current="current_Tab" />
				</u-sticky>
			</view>
			
			<!-- 公海客户 -->
			<!-- <scroll-view scroll-y class="list" v-if="currentTab == 1 && type == ''">

			</scroll-view> -->
			<!-- 选择会员 -->
			<scroll-view scroll-y class="list" v-if="type == 1 && currentTab == 1">
				<van-checkbox-group :value="selectList" @change.native="change">
					<view class="item" v-for="(item,index) in studentlist" :key="index" style="position: relative;"
						@click="huiyuanxiangq">
						<!-- studentlist -->
						<view class="" style="width: 80%;">
							<!-- @change="onChange" -->
							<van-checkbox checked-color="#635df7" icon-size="40rpx" :name="index" @change="onChange"
								:disabled="item.is_leave == 2">
								<view class="section_5" style="width: 90%;" @click='toggle(item)'>
									<view class="single-avatar_1">
										<image :src="item.head_img" mode="" @click='head_toggle(item)'></image>
									</view>
									<view class="group_5">
										<view class="box_1">
											<text lines="1" class="text_8">{{item.name}}</text>
											<view class="tag_1">
												<text lines="1" class="text_9">黄金会员</text>
											</view>
										</view>
										<text lines="1" class="text_10">15654577841</text>
									</view>
									<view class="tag_2">
										<text lines="1" class="text_11">卡</text>
									</view>
								</view>
							</van-checkbox>
						</view>
						<view class="" style="width: 88%;height: 100%;position: absolute;left: 0;top: 0;"
							v-if="item.is_leave == 2 && currentTab == 0">
						</view>
						<view class="" style="width: 100%;height: 100%;position: absolute;left: 0;top: 0; "
							v-if="item.is_leave == 2 && currentTab == 1">
						</view>
					</view>
				</van-checkbox-group>
			</scroll-view>
			
			<!-- 潜客管理 -->
			<scroll-view scroll-y="true" style="width: 100%;height: 72vh;overflow: hidden;"
				v-if="currentTab == 0 && type == ''">
				<view class="section_5" v-for="(item,index) in 4" :key="index" @click="huiyuanxiangq">
					<view class="single-avatar_1">
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/45/9e19f395e62069d85a20ffe52d0192.jpg?attname=%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230425084656.jpg"
							mode=""></image>
					</view>
					<view class="group_5">
						<view class="box_1">
							<text lines="1" class="text_8">悠然苑</text>
						</view>
						<!-- <text lines="1" class="text_10">15654577841</text> -->
						<view class="tag-list">
							<u-tag v-for="(mark, markIndex) in marklist" :key="markIndex" :text="mark.name"
								 :borderColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :bgColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :color="mark.id == 2 ? '#4F78B5' : '#BEBDBD'" size="mini"></u-tag>
						</view>
					</view>
					<view class="group_6">
						<!-- <view class="icon_6">
							<view class="box_2"></view>
							<view class="box_3"></view>
							<view class="box_4"></view>
						</view> -->
						<!-- v-if="item.checked"  三个点操作-->
						<!-- <view class="menu-box" v-if="currentTab == 0">
							<view style="width: 30rpx;height: 60rpx;">
								<view class="group_6">
									<view class="button_2">
										<text lines="1" class="text_12">活跃</text>
									</view>
									<view class="icon_6" @click.stop="handOpenMenu(index)">
										<view class="box_2"></view>
										<view class="box_3"></view>
										<view class="box_4"></view>
									</view>
								</view>
							</view>
							<view class="box_20" v-if="index === selectItemId">
								<view class="image-text_4">
									<image
										src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/0b678807bef9104b96148fa762b3f04c7ee57a0e.png"
										class="icon_5"></image>
									<text lines="1" class="text-group_4">电话</text>
								</view>
								<view class="image-text_5">
									<image
										src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/76c574b404ee93dbf1227d955eb77b869e76d27d.png"
										class="icon_67"></image>
									<text lines="1" class="text-group_5">跟进</text>
								</view>
								<view class="image-text_6" @click="huiyuanxiangq">
									<image
										src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
										class="icon_7"></image>
									<text lines="1" class="text-group_6">详情</text>
								</view>
								<view class="image-text_6">
									<image
										src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/17b668401cf1241ec91b192a01a4fd3eb86ac1bf.png"
										class="icon_7"></image>
									<text lines="1" class="text-group_6">删除</text>
								</view>
								<image
									src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/f820809dedb1e84b45f4b46e359e3ad308af5541.png"
									class="image_4"></image>
							</view>
						</view> -->
					</view>
			
				</view>
			</scroll-view>

			<!-- 会员管理 -->
			<scroll-view scroll-y="true" style="width: 100%;height: 72vh;overflow: hidden;"
				v-if="currentTab == 1 && type == ''">
				<view class="section_5" v-for="(item,index) in 4" :key="index" @click="huiyuanxiangq">
					<view class="single-avatar_1">
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/45/9e19f395e62069d85a20ffe52d0192.jpg?attname=%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230425084656.jpg"
							mode=""></image>
					</view>
					<view class="group_5">
						<view class="box_1">
							<text lines="1" class="text_8">悠然苑</text>
							<view class="tag_1">
								<text lines="1" class="text_9">黄金会员</text>
							</view>
						</view>
						<!-- <text lines="1" class="text_10">15654577841</text> -->
						<view class="tag-list">
							<u-tag v-for="(mark, markIndex) in marklist" :key="markIndex" :text="mark.name"
								 :borderColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :bgColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :color="mark.id == 2 ? '#4F78B5' : '#BEBDBD'" size="mini"></u-tag>
						</view>
					</view>
					<!-- <view class="tag_2">
						<text lines="1" class="text_11">卡</text>
					</view> -->
					<view class="group_6">
						<view class="button_2">
							<text lines="1" class="text_12">愿望与</text>
						</view>
					</view>
				</view>
			</scroll-view>
			<scroll-view scroll-y="true" style="width: 100%;height: 72vh;overflow: hidden;"
				v-if="currentTab == 2 && type == ''">
				<view class="section_5" v-for="(item,index) in 4" :key="index" @click="huiyuanxiangq">
					<view class="single-avatar_1">
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/45/9e19f395e62069d85a20ffe52d0192.jpg?attname=%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230425084656.jpg"
							mode=""></image>
					</view>
					<view class="group_5">
						<view class="box_1">
							<text lines="1" class="text_8">悠然苑</text>
							<view class="tag_3">
								<text lines="1" class="tag_text">普通会员</text>
							</view>
						</view>
						<view class="tag-list">
							<u-tag v-for="(mark, markIndex) in marklist" :key="markIndex" :text="mark.name"
								 :borderColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :bgColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :color="mark.id == 2 ? '#4F78B5' : '#BEBDBD'" size="mini"></u-tag>
						</view>
					</view>
					<!-- <view class="tag_2">
						<text lines="1" class="text_11">卡</text>
					</view> -->
					<view class="group_6">
						<view class="button_2">
							<text lines="1" class="text_12">愿望与</text>
						</view>
					</view>
				</view>
			</scroll-view>
			<scroll-view scroll-y="true" style="width: 100%;height: 72vh;overflow: hidden;"
				v-if="currentTab == 3 && type == ''">
				<view class="section_5" v-for="(item,index) in 4" :key="index" @click="huiyuanxiangq">
					<view class="single-avatar_1">
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/45/9e19f395e62069d85a20ffe52d0192.jpg?attname=%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230425084656.jpg"
							mode=""></image>
					</view>
					<view class="group_5">
						<view class="box_1">
							<text lines="1" class="text_8">悠然苑</text>
							<view class="tag_4">
								<text lines="1" class="tag_text">铂金会员</text>
							</view>
						</view>
						<view class="tag-list">
							<u-tag v-for="(mark, markIndex) in marklist" :key="markIndex" :text="mark.name"
								 :borderColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :bgColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :color="mark.id == 2 ? '#4F78B5' : '#BEBDBD'" size="mini"></u-tag>
						</view>
					</view>
					<!-- <view class="tag_2">
						<text lines="1" class="text_11">卡</text>
					</view> -->
					<view class="group_6">
						<view class="button_2">
							<text lines="1" class="text_12">愿望与</text>
						</view>
					</view>
				</view>
			</scroll-view>
			<scroll-view scroll-y="true" style="width: 100%;height: 72vh;overflow: hidden;"
				v-if="currentTab == 4 && type == ''">
				<view class="section_5" v-for="(item,index) in 4" :key="index" @click="huiyuanxiangq">
					<view class="single-avatar_1">
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/45/9e19f395e62069d85a20ffe52d0192.jpg?attname=%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230425084656.jpg"
							mode=""></image>
					</view>
					<view class="group_5">
						<view class="box_1">
							<text lines="1" class="text_8">悠然苑</text>
							<view class="tag_5">
								<text lines="1" class="tag_text">钻石会员</text>
							</view>
						</view>
						<view class="tag-list">
							<u-tag v-for="(mark, markIndex) in marklist" :key="markIndex" :text="mark.name"
								 :borderColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :bgColor="mark.id == 2 ? '#F1F3F6' : '#F1F3F6'"
								 :color="mark.id == 2 ? '#4F78B5' : '#BEBDBD'" size="mini"></u-tag>
						</view>
					</view>
					<!-- <view class="tag_2">
						<text lines="1" class="text_11">卡</text>
					</view> -->
					<view class="group_6">
						<view class="button_2">
							<text lines="1" class="text_12">愿望与</text>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
		<!-- 底部 -->
		<view class="footer" v-if="type == 1">
			<view class="flex-space-between">
				<van-checkbox :value="isAllSelect" checked-color="#635df7" icon-size="40rpx" @change.native="allChange">

					<view class="label">全选</view>

				</van-checkbox>
				<view class="">
					<button type="default"
						style="width: 170rpx;height: 70rpx;font-size: 26rpx;background-color: #4786fe;color: #ffffff;">确定</button>
				</view>
			</view>
		</view>

		<!-- <v-gap /> -->
		<!-- 筛选 -->
		<view class="cons_contenter" v-if="dropdownmenu" @click="dropdownmenulist"></view>
		<view class="cons_con" v-if="dropdownmenu">
			<view class="cons_con_contenter" v-for="(item,index) in droplist" :key="index"
				@click='fieldclick(item,index)'>
				<view class="date-item_left">
					<view class="actives" v-if="dateActive === index">{{item.name}}</view>
					<view class="text-group_14-0" v-else>{{item.name}}</view>
				</view>
				<view class="date-item_right">
					<image v-if="dateActive === index" :src="item.img" class="image_19-0"></image>
				</view>
			</view>
		</view>
		<!-- 场馆切换 -->
		<van-popup closeable :show="show" round position="bottom" get-container="body" @close="showclose"
			:z-index='9999'>
			<view class="good-box">
				<view class="title">
					切换场馆
				</view>
				<view class="good-list">
					<view class="good-item" v-for="(item,index) in venuelist" :key="index" @click="onChangelist(item)">
						<view class="flex-align">
							<van-image width="124rpx" height="124rpx" radius="10rpx" fit="cover"
								v-if="item.venue_thumb != ''" :src="item.venue_thumb" />
							<van-image v-else width="124rpx" height="124rpx" radius="10rpx" fit="cover"
								src="https://img.yzcdn.cn/vant/cat.jpeg" />
							<view class="info">
								<view class="name">{{item.venue_name}}</view>
								<view class="flex-align" v-if="item.project_list != ''">
									<view class="tag" v-if="item.project_list[0].name != ''">
										{{item.project_list[0].name}}
									</view>
									<view class="tag" v-if="item.project_list[1].name != '' && item.project_list[1]">
										{{item.project_list[1].name}}
									</view>
									<view class="tag" v-if="item.project_list[2].name != ''&& item.project_list[2]">
										{{item.project_list[2].name}}
									</view>
								</view>
								<view class="address">{{item.address}}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</van-popup>
	</view>
</template>

<script>
	const lastdata = [{
		"name": '筛选',
		"type": 'filter',
		"submenu": [{
				"name": "会员类型",
				"submenu": [{
						"name": "普通会员",
						"value": "1"
					},
					{
						"name": "黄金会员",
						"value": "2"
					}
				]
			},
			{
				"name": "会员分类",
				"submenu": [{
						"name": "小程序游客",
						"value": "1"
					},
					{
						"name": "小程序认证",
						"value": "2"
					},
					{
						"name": "线上门票(散客)",
						"value": "3"
					},
					{
						"name": "前台门票(散客)",
						"value": "4"
					},
					{
						"name": "线上时间卡",
						"value": "5"
					},
					{
						"name": "前台时间卡",
						"value": "5"
					},
					{
						"name": "前台时间卡",
						"value": "5"
					},
					{
						"name": "前台计次卡",
						"value": "6"
					},
					{
						"name": "线上充值卡",
						"value": "7"
					},
					{
						"name": "前台充值卡",
						"value": "8"
					},
					{
						"name": "线上私教卡",
						"value": "9"
					},
					{
						"name": "前台私教卡",
						"value": "10"
					},

					{
						"name": "线上场地",
						"value": "11"
					},
					{
						"name": "前台场地",
						"value": "12"
					},
					{
						"name": "培训",
						"value": "13"
					},
					{
						"name": "赛事",
						"value": "14"
					},
				]
			},
			{
				"name": "会员分析",
				"submenu": [{
						"name": "会员分析",
						"value": "4"
					},
					{
						"name": "今日新增",
						"value": "5"
					},
					{
						"name": "今日办卡",
						"value": "6"
					},
					{
						"name": "余次不足",
						"value": "6"
					},
					{
						"name": "即将到期",
						"value": "6"
					},
					{
						"name": "余额不足",
						"value": "6"
					},
					{
						"name": "连续7日消费",
						"value": "6"
					},
					{
						"name": "7天未登录",
						"value": "6"
					},
					{
						"name": "7日未消费",
						"value": "6"
					}
				]
			}
		]
	}];
	const personal = require("@/api/personal/index.js");
	export default {
		data() {
			return {
				lineChartData: {},
				show: false,
				venuelist: [], //场馆列表
				itemChoose: {}, // 场馆数据
				itemChooselist: {}, // 场馆数据
				droplist: [{
					name: '价格由低到高',
					img: 'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/26d8a9fada06c95955c8ba81836aa4d8b927c35f.png',
				}, {
					name: '价格由高到低',
					img: 'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/26d8a9fada06c95955c8ba81836aa4d8b927c35f.png',
				}, {
					name: '销量排序',
					img: 'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/26d8a9fada06c95955c8ba81836aa4d8b927c35f.png',
				}],
				dropdownmenu: false,
				dateActives: '',
				currentTab: 0,
				current_Tab: 0,
				tabsList: [{
						name: '散客'
					},
					{
						name: '计次卡'
					},
					{
						name: '时间卡'
					},
					{
						name: '充值卡'
					},
					{
						name: '私教卡'
					},
					{
						name: '场地'
					},
					{
						name: '培训'
					},
					{
						name: '赛事'
					}
				],
				tabsList_s: [{
					name: '会员管理'
				}],
				studentlist: [{
						head_img: "https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/c7/2f68e33cb78b34dd21693863f714fb.jpg?attname=tmp_90a01b9bd3e863934b6a0a1cac82ba33.jpg",
						is_leave: 1,
						is_point: 1,
						mobile: "",
						name: "戴晓龙",
						id: 1
					},
					{
						head_img: "https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/c7/2f68e33cb78b34dd21693863f714fb.jpg?attname=tmp_90a01b9bd3e863934b6a0a1cac82ba33.jpg",
						is_leave: 1,
						is_point: 1,
						mobile: "",
						name: "李杰",
						id: 3
					}
				],
				selectList: [],
				isAllSelect: false, //是否全选
				bgMenuShow: false, //全局菜单弹窗
				selectItemId: -1,
				showMenu: true,
				type: '',
				defaultSelected: [],
				filterData: [],
				marklist: [{
					name:"票",
					id:2
				},{
					name: "计次",
					id:2
				},{
					name: "时间",
					id:1
				},{
					name: "充值",
					id:2
				},{
					name: "场地",
					id:2
				},{
					name: "培",
					id:1
				},{
					name: "私",
					id:2
				},{
					name: "赛",
					id:1
				}]
			}
		},
		onLoad(options) {
			this.type = options.type
			// 场馆数组
			if (uni.getStorageSync("entry_name") == '') {
				uni.showToast({
					title: '请登录！',
					icon: 'exception',
					duration: 850
				});
				setTimeout(() => {
					uni.navigateTo({
						url: '/pages/my-center/my-center'
					})
				}, 1000);
			}
			var data = uni.getStorageSync("wqzdy");
			var items = JSON.parse(data)
			this.venuelist = items
			this.itemChooselist = this.venuelist[0]
			setTimeout(() => {
				this.filterData = lastdata;
			}, 100);
		},
		methods: {
			confirm(e) {
				uni.navigateTo({
					url:'./shaixuan'
				})
				// this.indexArr = e.index;
				// this.valueArr = e.value;

			},
			tianjiaclick() {
				uni.navigateTo({
					url: './member_Details/new_members'
				})
			},
			change(event) {
				this.selectList = event.detail
				this.applicantlist = []
				this.selectList.forEach((ex, ix) => {
					this.studentlist.forEach((el, idx) => {
						if (ix == idx) {
							this.applicantlist.push(el.id)
						}
					})
				})
			},
			allChange(event) {
				this.isAllSelect = event.detail
				if (this.isAllSelect) {
					this.selectList = []
					this.studentlist.forEach((item, index) => {
						if (item.is_leave != 2) {
							this.selectList.push(index.toString())
						}
					})
					this.selectList = this.selectList
					this.applicantlist = []
					this.studentlist.forEach((el, idx) => {
						if (el.is_leave != 2) {
							this.applicantlist.push(el.id)
						}
					})
				} else {
					this.selectList = []
					this.applicantlist = []
				}
			},
			head_toggle(item) {
				this.pan_img = true
				this.court_pic = item.head_img
			},
			// 图片放大
			handledownload(item) {
				const that = this
				wx.downloadFile({
					url: court_pic,
					success: res => {
						if (res.statusCode === 200) {
							uni.saveImageToPhotosAlbum({
								filePath: res.tempFilePath,
								success: function() {
									uni.showToast({
										title: '保存成功',
										duration: 2000
									})

								},
								fail: function() {
									uni.showToast({
										title: '保存失败',
										duration: 2000
									})

								}
							})
						} else {
							uni.showToast({
								title: '保存失败',
								duration: 2000
							})
						}
					}
				})
			},
			toggle(item) {
				item.checked = !item.checked
				this.selectItemId = ''
				this.applicantlist = []
				this.studentlist.forEach((el, idx) => {
					if (el.checked) {
						this.applicantlist.push(el.id)
					}

				})
				// this.applicant = this.applicantlist.toString()
			},
			handOpenMenu(index) {
				this.selectItemId = index
			},
			async analyse() {
				let params = {
					venue_id: this.itemChooselist.id,
					sourceTab: this.nac
				};
				let res = await personal.analyse(params);
				if (res.code == 1) {
					this.lineChartData = res.data.lineChartData
				}
			},
			// 蒙版关闭
			dropdownmenulist() {
				this.dropdownmenu = false
			},
			// 打开蒙版/选择
			dropdownclick() {
				// this.dropdownmenu = true
				// uni.navigateTo({
				// 	url: './shaixuan'
				// })
			},
			onClickTab({
				index
			}) {
				this.currentTab = index;
				this.selectItemId = ''
			},
			// 分类点击
			fieldclick(item, index) {
				this.dateActive = index
				setTimeout(() => {
					this.dropdownmenu = false
				}, 200)
			},
			commoditylist(item, index) {
				uni.navigateTo({
					url: './commodity_product'
				})
			},
			// 分类点击
			fieldclicks(item, index) {
				this.dateActives = index
			},
			merchantclick(item, index) {},
			selectclick(item, index) {},
			// 选中场馆
			onChangelist(item) {
				this.itemChoose = item
				this.lineChartData = []
				this.itemChooselist = this.itemChoose
				this.show = false

			},
			// 点击切换
			show_no() {
				this.show = true
			},
			// 关闭选择场馆弹窗
			showclose() {
				this.show = false
			},
			// 跳转会员详情
			huiyuanxiangq() {
				uni.navigateTo({
					url: './member_Details/member_Details'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import '../../static/css/member/member_index.scss';
</style>